$("#head").load("header.html",function () {
})
$("#foot").load("footer.html",function () {})
new Vue({
    el:'#clause',
    data:{
        service :""
    },
    ready:function(){
        var self = this;
        $("#wx_icon").hover(function(){
            $("#wx_ii").show()
        },function(){
            $("#wx_ii").hide()
        });
        //服务条款
        $.ajax({
            url:'http://api.456mobi.com/api/?s=home/Information/get_content',
            type:'post',
            data:{
                type:2
            },
            success: function(ret){
                self.service = self.unescape(ret.data.service);
                console.log(JSON.stringify(ret.data));
            }
        })
    },
    methods:{
        unescape:function (html) {
            return html
                .replace(html ? /&(?!#?\w+;)/g : /&/g, '&amp;')
                .replace(/&lt;/g, "<")
                .replace(/&gt;/g, ">")
                .replace(/&quot;/g, "\"")
                .replace(/&#39;/g, "\'");
        },
    }
})